package com.baibei.ebec;

import android.os.Build;
import android.support.test.runner.AndroidJUnit4;
import android.util.Log;

import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * Instrumented test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
//        Context appContext = InstrumentationRegistry.getTargetContext();
//        assertEquals("com.baibei.ebec", appContext.getPackageName());

        StringBuilder sb = new StringBuilder();
        sb.append("ID = ");
        sb.append(Build.ID);
        sb.append("\n");
        sb.append("DEVICE = ");
        sb.append(Build.DEVICE);
        sb.append("\n");
        sb.append("BOARD = ");
        sb.append(Build.BOARD);
        sb.append("\n");
        sb.append("BOOTLOADER = ");
        sb.append(Build.BOOTLOADER);
        sb.append("\n");
        sb.append("DISPLAY = ");
        sb.append(Build.DISPLAY);
        sb.append("\n");
        sb.append("TIME = ");
        sb.append(Build.TIME);
        sb.append("\n");
        sb.append("FINGERPRINT = ");
        sb.append(Build.FINGERPRINT);
        sb.append("\n");
        sb.append("MODEL = ");
        sb.append(Build.MODEL);
        sb.append("\n");
        sb.append("PRODUCT = ");
        sb.append(Build.PRODUCT);
        sb.append("\n");
        sb.append("SERIAL = ");
        sb.append(Build.SERIAL);
        sb.append("\n");
        sb.append("DeviceId = ");
        sb.append("\n");
        Log.i("rae", sb.toString());
    }


}
